<template>
    <div class="order-header clearfix">
        <div class="container">
            <div class="header-logo">
                <a href="/#/index"></a>
            </div>
            <div class="title">
                <h2>{{title}} <slot name="tip"></slot></h2>
            </div>
            <div class="username">
                <a href="javascript:;">{{username}}</a>
            </div>
        </div>
    </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
    name: "order-header",
    props:{
      title:String  
    },
    data() {
        return {}
    },
    computed:{
        ...mapState([
            'username'
        ])
    },
    components: {},
    methods: {}
}
</script>

<style lang="scss">
.order-header{
    border-bottom: 2px solid #FF6600;
    padding: 30px 0;
    .header-logo{
        float: left;
    }
    .title,.username{
        display: inline-block;
        height: 55px;
        line-height: 55px;
    }
    .title{
        margin-left: 54px;
        font-size: 28px;
        float: left;
        color: #333333;
        h2{
            font-size: 28px;
            color: #333333;
        }
        span{
            font-size: 14px;
            margin-left: 17px;
            color: #999999;
            font-weight: 200;
        }
    }
    .username{
        float: right;
        a{
            color: #666666;
            font-size: 16px;
        }
    }
}
</style>
